package com.engine4cloud.tdf.education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.engine4cloud.tdf.common.data.web.response.PageInfo;
import com.engine4cloud.tdf.common.data.web.response.Params;
import com.engine4cloud.tdf.education.dto.create.EduGroupCreateDTO;
import com.engine4cloud.tdf.education.dto.query.EduGroupQueryDTO;
import com.engine4cloud.tdf.education.dto.result.EduGroupResultDTO;
import com.engine4cloud.tdf.education.dto.update.EduGroupUpdateDTO;
import com.engine4cloud.tdf.education.entity.EduGroupEntity;

import java.util.List;

public interface EduGroupService extends IService<EduGroupEntity> {

    PageInfo<EduGroupResultDTO> pageList(Params page, EduGroupQueryDTO dto);

    EduGroupResultDTO getById(Long id);

    Boolean create(EduGroupCreateDTO dto);

    Boolean update(EduGroupUpdateDTO dto);

    List<EduGroupResultDTO> findListByCourseCode(String courseCode);
}